package com.socool.signup;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;

import com.socool.R;

public class Act_SignUpForm extends Activity {

	String id, email, name, gender, company, univ, univ_graduate;
	
	EditText ET_Age,ET_Company,ET_Gender,ET_Height,ET_Job,ET_Locate
	,ET_Name,ET_PhoneNumber,ET_Univ,ET_Univ_Graduate;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.act_signup_form);

		
	varInit();
	setValue();
	}

	
	private void varInit() {

		Intent intent = getIntent();
		
		Bundle b = intent.getExtras();
		id = b.getString("Id");
		email = b.getString("Email");
		name = b.getString("Name");
		gender = b.getString("Gender");
		company = b.getString("Work");
		univ = b.getString("College");
		univ_graduate = b.getString("Graduate");
		
/*
		id = intent.getStringExtra("Id");
		email = intent.getStringExtra("Email");
		name = intent.getStringExtra("Name");
		gender = intent.getStringExtra("Gender");
		company = intent.getStringExtra("Work");
		univ = intent.getStringExtra("College");
		univ_graduate = intent.getStringExtra("Graduate");
		
*/
		
		ET_PhoneNumber = (EditText)findViewById(R.id.ET_PhoneNumber);
		ET_Name = (EditText)findViewById(R.id.ET_Name);
		ET_Gender = (EditText)findViewById(R.id.ET_Gender);
		ET_Age = (EditText)findViewById(R.id.ET_Age);
		ET_Job = (EditText)findViewById(R.id.ET_Job);
		ET_Company = (EditText)findViewById(R.id.ET_Company);
		ET_Univ = (EditText)findViewById(R.id.ET_Univ);
		ET_Univ_Graduate = (EditText)findViewById(R.id.ET_Univ_Graduate);
		ET_Height = (EditText)findViewById(R.id.ET_Height);
		ET_Locate = (EditText)findViewById(R.id.ET_Locate);
		
	}
	
	private void setValue() {
		ET_Name.setText(name);
		ET_Gender.setText(gender);
		ET_Company.setText(company);
		ET_Univ.setText(univ);
		ET_Univ_Graduate.setText(univ_graduate);
		
	}


}
